package model;

public class MyRunable implements Runnable {
	@Override
	public synchronized void run() {
		print();
	}
	
	public synchronized void print() {
		for(int i = 0; i < 5; i++) {
			System.out.println(i + " ");
		}
	}

}
